/**
 * Copyright (c) 2013 onionframework.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.onionframework.core.optional;

import org.onionframework.core.Framework;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

public class OnionCoreNamespaceHandler extends NamespaceHandlerSupport {

	@Override
	public void init() {
		Framework.loadComponents();
		registerBeanDefinitionParser("import", new ImportBeanDefinitionParser());
		registerBeanDefinitionParser("importOptionalParts", new OptionalPartParser());
	}
}
